<%@page import="blog.controller.UserController"%>
	
		<%if(UserController.isLogged(session)) {%>
		
			Witaj, <%= UserController.getUser(session).getLogin() %>!<br/>
			
			<a href = "LogoutAction.do"><input type="button" value="Wyloguj"></a>
			
		<%} else { %>
	
			<form name = "login" method = "post" onsubmit="return loginValidation(); " action = "LoginAction.do">
				
				login: <br/>
				<input type="text" name = "login"> <br/>
				haslo: <br/>
				<input type="password" name = "password"> <br/>
				<button type = "submit">zaloguj</button>
				<br><a href = "DirectionAction.do?type=r">Zarejestruj sie</a>
			</form>
			<%} %>
	